const express = require('express');
const router = express.Router();
const userController = require('../controllers/userController');

// 修改头像
router.get('/avatar', userController.updateAvatar);

// 修改用户名
router.get('/username', userController.updateUsername);

module.exports = router; 